package com.wondedDream.service;

import com.wondedDream.model.UserPracticeRecord;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserPracticeRecordService {
    UserPracticeRecord saveUserPracticeRecord(UserPracticeRecord record);
    UserPracticeRecord getUserPracticeRecordById(Integer id);
    List<UserPracticeRecord> getUserPracticeRecordsByUserId(Integer userId);
    List<UserPracticeRecord> getUserPracticeRecordsByPracticeQuestionId(Integer practiceQuestionId);

    List<UserPracticeRecord> findDistinctPracticeIdsByOpenid(String userOpenId);
}